package com.gxa.sso.service.impl;

import com.gxa.sso.pojo.Employee;
import com.gxa.sso.repository.EmployeeRepository;
import com.gxa.sso.routing.DataSource;
import com.gxa.sso.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zxd on 2020/12/21
 **/
@Service
@DataSource("ds1")
public class EmployeeServiceImpl implements EmployeeService {


    @Autowired
    private EmployeeRepository employeeRepository;

    @Override
    public void saveEmployee(Employee employee) {
        employeeRepository.save(employee);
    }
}
